package com.developmentReformProject.dao;

/***********************************************************************
 * Module:  BaseDao.java
 * Author:  刘子儒
 * Purpose: Defines the Interface BaseDao
 ***********************************************************************/

import java.util.*;


public interface BaseDao<E,D,Q> {
    /**
     * 添加数据
     * @throws Exception
     */
    void add() throws Exception;
    /**
     * 修改数据
     * @throws Exception
     */
    void update() throws Exception;
    /**
     * 删除数据
     * @throws Exception
     */
    void delete() throws Exception;
    /**
     * 查找用户
     * @return
     * @throws Exception
     */
    int queryUser() throws Exception;

    int queryUserList() throws Exception;

    int getById(Long id) throws Exception;

    List<E> findAll() throws Exception;

    void save() throws Exception;

}
